createEvent

abstract fun createEvent(eventType: EventType, params: EventParams): Event

Creates and returns a new Event object with the given eventType and params.

Parameters

eventType

an EventType object representing a type of a DOM event supported by engine

params

an EventParams object representing DOM event properties (e.g. bubbles, cancellable)

See also

Throws

when the document is closed